package com.whfc.mach.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @ClasssName MachAddParam
 * @Description 添加设备请求类
 * @Author hw
 * @Date 2020/8/17 16:00
 * @Version 1.0
 */
@Data
public class MachAddParam implements Serializable {

    @NotEmpty
    @Size(max = 25)
    protected String machCode;

    @NotNull
    protected Integer machType;

    @NotEmpty
    protected String machTypeName;

    protected String machModelName;

    protected Integer corpId;

    protected String corpName;

    /**
     * 设备进场时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @NotNull
    protected Date enterTime;

    /**
     * 设备出厂时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    protected Date deliveryTime;

    /**
     * 持有方机构ID
     */
    private Integer deptId;

    /**
     * 操作手信息
     */
    protected List<MachOperEmpParam> operEmpList;

    /**
     * 设备图片信息
     */
    protected List<String> imgList;

    /**
     * 累计工时
     */
    protected Double totalWorkHours;

    /**
     * 油箱体积L
     */
    protected Double oilTankVolume;

    /**
     * 油箱高度cm
     */
    protected Double oilTankHeight;
    /**
     * 资产编号
     */
    private String assetCode;
    /**
     * 出厂编码
     */
    private String deliveryCode;
    /**
     * 使用部位
     */
    private String partName;
    /**
     * 生产厂家
     */
    private String manufacturer;
}
